package com.yaodian100.ec.sms.remote;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;

import com.yaodian100.core.admin.entity.Role;
import com.yaodian100.core.admin.entity.User;
import com.yaodian100.core.mail.entity.Mail;
import com.yaodian100.core.menu.entity.Menu;
import com.yaodian100.core.menu.entity.Option;
import com.yaodian100.core.sms.service.SmsService;

public class RemoteSmsServiceImpl implements RemoteSmsService {
	@Autowired
	private SmsService smsService;

	@Override
	public boolean receiveSmsDeliveryReport(String smsId, String statusCode, Date receiveTime, Date operatorTime,
			String reasonCode, String statusText) {
		return smsService.receiveSmsDeliveryReport(smsId, statusCode, receiveTime, operatorTime, reasonCode, statusText);

	}

	@Override
	public boolean updateSmsResponse(Long msgId, String smsId, String responseCode, String reasonCode,
			String responseMessage, Date responseTime) {
		return smsService.updateSmsResponse(msgId, smsId, responseCode, reasonCode, responseMessage, responseTime);

	}

	@Override
	public boolean receiveSmsDeliveryReportByOperator(String smsId, String statusCode, Date receiveTime,
			Date operatorTime, String reasonCode, String statusText, String operator) {
		return smsService.receiveSmsDeliveryReport(smsId, statusCode, receiveTime, operatorTime, reasonCode, statusText,
				operator);

	}

	@Override
	public boolean updateSmsResponseByOperator(Long msgId, String smsId, String responseCode, String reasonCode,
			String responseMessage, Date responseTime, String operator) {
		return smsService
				.updateSmsResponse(msgId, smsId, responseCode, reasonCode, responseMessage, responseTime, operator);

	}
	
	@Override
	public boolean smsExceptionNotice(String tmp) {
		if (!"".equals(tmp)) {
			smsService.smsExceptionNotification();
		}
		return true;

	}

}
